home *** CD-ROM | disk | FTP | other *** search
- Path: interramp.com!usenet
- From: Brian Strelioff <pp001729@interramp.com>
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel,comp.lang.smalltalk
- Subject: Re: whither style
- Date: Mon, 01 Jan 1996 12:42:45 -0800
- Organization: BKS Systems, Inc.
- Message-ID: <30E84745.2781E494@interramp.com>
- References: <cmanDK7x13.5KM@netcom.com> <30e26364.2569895@news1.wolfe.net> <4bvae4$fl6@beatty.slip.netcom.com> <4c0a6d$4hs@news.irisa.fr> <dewar.820263524@schonberg>
- NNTP-Posting-Host: ip136.santa-ana.ca.interramp.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b3 (X11; I; SunOS 4.1.3_U1 sun4m)
-
- Robert Dewar wrote:
- >
- > Jean-Marc said:
- >
- > Please note that most of the HN (Hungarian Notation) discussion
- > is led in the C and C++ context only.
- > In Eiffel or Smalltalk, where everything is an object,
- > it would be really *stupid*
- > to use such a restricted notation: types such as Integer
- > or Float are nothing special
- > w.r.t the language, and they are no more important than e.g.,
- > linked_list_of_hash_table_of_foo.
- >
- > but the point is that this is true in well written C and C++ true.
-
- Actually the types INTEGER and FLOAT **are** "special" in Eiffel
- as they are 'value' rather then 'reference'. Also other areas in Eiffel
- are meant to allow specifying whether or not an attribute should
- be implemented as 'value' or 'reference'. For example,
-
- linked_list_of_hash_table_of_foo_1 : expanded LINKED_LIST[HASH_TABLE[FOO]];
- linked_list_of_hash_table_of_foo_2 : LINKED_LIST[HASH_TABLE[FOO]];
-
- are two entirely (well significantly at least) different fields, with
- linked_..._1 viewed as a value while linked_..._2 is a reference.
-
- >
- > I really do not think that HN is any more appropriate in C than in Eiffel
- > or Ada or whatever.
- >
- > the declaration of a variable type should be located close to its uses.
- > And [stuff deleted] ... *any* decent
- > environment would show you a variable's type only by clicking on it.
- >
- > [ more stuff deleted ]
- >
- > [ HN is ] thus mostly relevant to C and C++.
- > So please keep the discussion in these groups
- >
-
- The relevance is language independent (Actually irrelevance since I am
- strongly opposed to HN), but may be relevant if a "decent environment"
- is not available.
-